package cn.huangsm.advance.ratelimiter2;

import org.checkerframework.checker.interning.qual.Interned;

import java.lang.annotation.*;

/**
 * 自定义RateLimiter限流注解
 *
 * @author huang
 * @PACKAGE_NAME cn.huangsm.advance.ratelimiter2
 * @PROJECT_NAME advance-code
 * @date 2019/1/19
 */
@Interned
@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface AccessRateLimiter {
    /**
     * 默认每秒放进桶中的token
     * @return
     */
    double limitNum() default 20.0;
}
